package com.smart.village.big.screen.mapper;

import com.alibaba.fastjson.JSONObject;
import com.smart.village.big.screen.domain.News;
import com.smart.village.big.screen.domain.NewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface NewsMapper {
    News selectByPrimaryKey(String newsSerialNumber);

    List<NewsVo> selectNewsVoListByCategorySerialNumber(String newsCategorySerialNumber);

    List<NewsVo> getWorkDynamicList(@Param("newsTagSerialNumber")String newsTagSerialNumber,@Param("search")String search,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<NewsVo> selectNewsVoListInCategorySerialNumberList(@Param("treeList")List<String> treeList, @Param("partyOrganizationActivitySerialNumber") String partyOrganizationActivitySerialNumber,@Param("search")String search,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<NewsVo> getWorkDynamicBannerList(int environment,@Param("NewsTerminal")String NewsTerminal);

    void updateNewsViewsCount(News news);

    List<NewsVo> getMicroTwoContactTwoReportNewsList(@Param("param")HashMap<String, Object> param);

    List<NewsVo> getNoticePublish(@Param("treeList")List<String> treeList,@Param("treePartyOrganizationSerialNumberList") List<String> treePartyOrganizationSerialNumberList,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<NewsVo> searchDangJianZiXunLimit(int cnt,int environment,@Param("NewsTerminal")String NewsTerminal);

    List<NewsVo> getStudyAllDiscuss(@Param("param")HashMap<String, Object> param);

    List<NewsVo> getAuditList(@Param("param")HashMap<String, Object> param);

    List<NewsVo> getMicroManagerPartyNewsList(@Param("treeList")List<String> treeList, @Param("search")String search, @Param("phone")String phone,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<JSONObject> getAllListSearch( @Param("search")String search,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<NewsVo> getWorkTeamLogNewsList(String workTeamSerialNumber, String phone, String formatDate,String status,@Param("environment") int environment,@Param("NewsTerminal")String NewsTerminal);

    List<JSONObject> getCarouselConfig();

    List<JSONObject> getCarouselConfigBigScreen();

    List<JSONObject> getNewsTagsChengGuoList();
}
